<!doctype html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <title>Ext.data.HttpProxy</title>
        <link rel="stylesheet" type="text/css" href="../resources/reset.css"/>
        <link rel="stylesheet" type="text/css" href="../resources/style.css" media="screen"/>
        <link rel="stylesheet" type="text/css" href="../resources/print.css" media="print">
        <!-- GC -->
    </head>
    <body>
            <div class="body-wrap">
        <div class="top-tools">
        	<img src="../resources/print.gif" width="16" height="16" align="absmiddle">&nbsp;<a href="Ext.data.HttpProxy.html" target="_blank">Print Friendly</a><br/>

        </div>
        <h1>Class Ext.data.HttpProxy</h1>
        <table cellspacing="0">
            <tr><td class="label">Package:</td><td>Ext.data</td></tr>
            <tr><td class="label">Class:</td><td>HttpProxy</td></tr>
                        <tr><td class="label">Extends:</td><td>Object</td></tr>
                                    <tr><td class="label">Defined In:</td><td><a href="HttpProxy.jss.html">HttpProxy.js</a></td></tr>
        </table>
        <div class="description">
            An implementation of <a ext:cls="Ext.data.DataProxy" href="Ext.data.DataProxy.html">Ext.data.DataProxy</a> that reads a data object from an <a ext:cls="Ext.data.Connection" href="Ext.data.Connection.html">Ext.data.Connection</a> object
configured to reference a certain URL.<br><br>
<p>
<em>Note that this class cannot be used to retrieve data from a domain other than the domain
from which the running page was served.<br><br>
<p>
For cross-domain access to remote data, use an <a ext:cls="Ext.data.ScriptTagProxy" href="Ext.data.ScriptTagProxy.html">Ext.data.ScriptTagProxy</a>.</em><br><br>
<p>
Be aware that to enable the browser to parse an XML document, the server must set
the Content-Type header in the HTTP response to "text/xml".        </div>
        <br />
        	<a href="#properties">Properties</a>
			&nbsp;&nbsp;-&nbsp;&nbsp;<a href="#methods">Methods</a>
			&nbsp;&nbsp;-&nbsp;&nbsp;<a href="#events">Events</a>
        	        <hr />
        <a name="properties"></a>
        <h2>Public Properties</h2>
        <div class="no-members">This class has no public properties.</div>        <a name="methods"></a>
        <h2>Public Methods</h2>
                <table cellspacing="0" class="member-table">
            <tr>
                <th class="sig-header" colspan="2">Method</th>
                <th class="msource-header">Defined By</th>
            </tr>
                <tr class="">
        <td class="micon" rowspan="2">&nbsp;</td>
        <td class="sig"><b>HttpProxy</b>(&nbsp;<code>Object conn</code>&nbsp;)</td>
        <td class="msource" rowspan="2">HttpProxy</td>
    </tr>
    <tr class="">
        <td class="mdesc"></td>
    </tr>
        <tr class=" alt">
        <td class="micon" rowspan="2">&nbsp;</td>
        <td class="sig"><a class="mlink" href="#getConnection">getConnection</a>() : Connection</td>
        <td class="msource" rowspan="2">HttpProxy</td>
    </tr>
    <tr class=" alt">
        <td class="mdesc">Return the <a ext:cls="Ext.data.Connection" href="Ext.data.Connection.html">Ext.data.Connection</a> object being used by this Proxy.</td>
    </tr>
        <tr class="" expandable>
        <td class="micon" rowspan="2">&nbsp;</td>
        <td class="sig"><a class="mlink" href="#load">load</a>(&nbsp;<code>Object params</code>, <code>Ext.data.DataReader reader</code>, <code>Function callback</code>, <code>Object scope</code>, <code>Object arg</code>&nbsp;) : void</td>
        <td class="msource" rowspan="2">HttpProxy</td>
    </tr>
    <tr class="" expandable>
        <td class="mdesc">Load data from the configured Ext.data.Connection, read the data object into
a block of Ext.data.Records using the pa...</td>
    </tr>
            </table>
                <a name="events"></a>
        <h2>Public Events</h2>
        <div class="no-members">This class has no public events.</div>                
                    <a name="HttpProxy"></a>
            <h2 class="mdetail-head">Constructor Details</h2>
            <div class="detail-wrap">
                <div class="mdetail">
                <h3>HttpProxy</i></h3>
                <code>public function HttpProxy(&nbsp;<code>Object conn</code>&nbsp;)</code>
                <div class="mdetail-desc">
                                <div class="mdetail-params">
                    <strong>Parameters:</strong>
                    <ul><li><code>conn</code> : Object<div class="sub-desc">Connection config options to add to each request (e.g. {url: 'foo.php'} or
an <a ext:cls="Ext.data.Connection" href="Ext.data.Connection.html">Ext.data.Connection</a> object. If a Connection config is passed, the singleton <a ext:cls="Ext.Ajax" href="Ext.Ajax.html">Ext.Ajax</a> object
will be used to make the request.</div></li>                    </ul>
                </div>
                </div>
                </div>
            </div>
        
                    <h2 class="mdetail-head">Method Details</h2>
            <div class="detail-wrap">
                            <a name="getConnection"></a>
                <div class="mdetail">
                <h3>getConnection</i></h3>
                <code>public function getConnection()</code>
                <div class="mdetail-desc">
                    Return the <a ext:cls="Ext.data.Connection" href="Ext.data.Connection.html">Ext.data.Connection</a> object being used by this Proxy.
                <div class="mdetail-params">
                    <strong>Parameters:</strong>
                    <ul><li>None.</li>                    </ul>
                    <strong>Returns:</strong>
                    <ul>
                        <li><code>Connection</code><div class="sub-desc">The Connection object. This object may be used to subscribe to events on a finer-grained basis than the DataProxy events.</div></li>
                    </ul>
                </div>
                </div>
                <div class="mdetail-def">This method is defined by HttpProxy.</div>
                </div>
                            <a name="load"></a>
                <div class="mdetail alt">
                <h3>load</i></h3>
                <code>public function load(&nbsp;<code>Object params</code>, <code>Ext.data.DataReader reader</code>, <code>Function callback</code>, <code>Object scope</code>, <code>Object arg</code>&nbsp;)</code>
                <div class="mdetail-desc">
                    Load data from the configured <a ext:cls="Ext.data.Connection" href="Ext.data.Connection.html">Ext.data.Connection</a>, read the data object into
a block of Ext.data.Records using the passed <a ext:cls="Ext.data.DataReader" href="Ext.data.DataReader.html">Ext.data.DataReader</a> implementation, and
process that block using the passed callback.
                <div class="mdetail-params">
                    <strong>Parameters:</strong>
                    <ul><li><code>params</code> : Object<div class="sub-desc">An object containing properties which are to be used as HTTP parameters
for the request to the remote server.</div></li><li><code>reader</code> : Ext.data.DataReader<div class="sub-desc">The Reader object which converts the data
object into a block of Ext.data.Records.</div></li><li><code>callback</code> : Function<div class="sub-desc">The function into which to pass the block of Ext.data.Records.
The function must be passed <ul>
<li>The Record block object</li>
<li>The "arg" argument from the load function</li>
<li>A boolean success indicator</li>
</ul></div></li><li><code>scope</code> : Object<div class="sub-desc">The scope in which to call the callback</div></li><li><code>arg</code> : Object<div class="sub-desc">An optional argument which is passed to the callback as its second parameter.</div></li>                    </ul>
                    <strong>Returns:</strong>
                    <ul>
                        <li><code>void</code></li>
                    </ul>
                </div>
                </div>
                <div class="mdetail-def">This method is defined by HttpProxy.</div>
                </div>
                        </div>
        
                
        </div>
    <hr>
    <div style="font-size:10px;text-align:center;color:gray;">Ext - Copyright &copy; 2006-2007 Ext JS, LLC<br />All rights reserved.</div>

    </body>
</html>